package me.shurufa.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import butterknife.Bind;
import me.shurufa.R;
import me.shurufa.fragments.ChatMessageFragment;

/**
 * "我的"界面点击消息弹出界面
 * 内部只有一个fragment容器
 * 显示为会话消息列表
 *
 * @FileName: me.shurufa.activities.ChatMessageActivity.java
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-01-24 23:27
 */
public class ChatMessageActivity extends BaseActivity {

    @Bind(R.id.fragment_container)
    FrameLayout fragmentContainer;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_chat_message;
        super.onCreate(savedInstanceState);
        uiInit();
    }

    private void uiInit() {
        ChatMessageFragment fragment = new ChatMessageFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.fragment_container, fragment);
        transaction.commit();
    }
}
